﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Configuration;
using System.Text;

namespace WFIServiceBehaviorExtension
{
    
    /// <summary>
    /// 用于实现endpointBehavior扩展，可直接配置在config文件中，若采用在代码动态添加ValidateUserNamePasswordBehavior则这类可以不用定义
    /// </summary>
    public class ValidateUserNamePasswordElement : BehaviorExtensionElement
    {
        public override Type BehaviorType
        {
            get { return typeof(ValidateUserNamePasswordBehavior); }
        }

        protected override object CreateBehavior()
        {
            return new ValidateUserNamePasswordBehavior();
        }
    }
}
